//
//  TwoStateButton.h
//  ZingBrowser
//
//  Created by -Xh- on 1/22/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol TwoStateButtonDelegate <NSObject>

@optional
-(void)onTouchStateOne:(UIButton*)_button;
-(void)onTouchStateTwo:(UIButton*)_button;

@end

@interface TwoStateButton : UIButton{
    bool isOnStateOne;
    UIImage* stateOneImage;
    UIImage* stateTwoImage;
    UIImage* stateOneHighLightImage;
    UIImage* stateTwoHighLightImage;
}

@property (nonatomic) id<TwoStateButtonDelegate> delegate;
-(void)initialize;
-(void)swapState;
-(void)setImageOne:(UIImage*)_imageOne AndImageTwo:(UIImage*)_imageTwo;
-(void)setHighLightImageOne:(UIImage*)_imageOne AndHighLightImageTwo:(UIImage*)_imageTwo;

// 0 : stateOne   
// 1 : stateTwo
-(void)swapToState:(int)_state;
-(void)swapToStateInBool:(BOOL)_state;
@end
